'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  router.post('/login', controller.login.index);
  router.get('/imgList', controller.upload.findList);
  router.post('/upload', controller.upload.upload);
  router.post('/download', controller.upload.download);
  router.delete('/delImage/:name', controller.upload.delImage);
};
